FROM pi4k8s/nginx-openjdk8-redis5:1.0

WORKDIR /opt

ADD eladmin-system.jar /opt

ENV JAVA_OPTS "-Xms512m -Xmx512m"

RUN rm -rf /usr/share/nginx/html/*

COPY dist /usr/share/nginx/html/

COPY default.conf /etc/nginx/conf.d

COPY entrypoint.sh /opt/entrypoint.sh

RUN chmod a+x /opt/entrypoint.sh

ENTRYPOINT /opt/entrypoint.sh